package com.aproj.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="userEvent")
public class UserEvent implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long userEventId;
	private long userId;
	private long eventId;
	private RequestStatus status;
	private Date statusDate;
	
	public UserEvent() {
		// TODO Auto-generated constructor stub
	}
	
	@Id
	@GeneratedValue
	public long getUserEventId() {
		return userEventId;
	}
	public void setUserEventId(long userEventId) {
		this.userEventId = userEventId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getEventId() {
		return eventId;
	}
	public void setEventId(long eventId) {
		this.eventId = eventId;
	}
	@Enumerated(EnumType.STRING)
	public RequestStatus getStatus() {
		return status;
	}
	public void setStatus(RequestStatus status) {
		this.status = status;
	}
	public Date getStatusDate() {
		return statusDate;
	}
	public void setStatusDate(Date statusDate) {
		this.statusDate = statusDate;
	}
	
	
}
